package com.example.course.service.impl;

import com.example.course.bean.Admin;
import com.example.course.mapper.AdminMapper;
import com.example.course.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    private AdminMapper adminMapper;

    @Override
    public Admin getAdmin(Admin admin) {
        return adminMapper.selectAdmin(admin);
    }
}
